Current Location: Home> Function Categories> atan

atan

Anyway
Name:atan
Category:math
Programming Language:php
One-line Description:Arctangent.

Definition and usage

The atan() function returns the arctangent tangent of a numeric value, which is between -PI/2 and PI/2.

Example

This example calculates the arctangent of different values:

 <?php
echo ( atan ( 0.50 ) ) ;
echo ( atan ( - 0.50 ) ) ;
echo ( atan ( 5 ) ) ;
echo ( atan ( 10 ) ) ;
echo ( atan ( - 5 ) ) ;
echo ( atan ( - 10 ) )
?>

Try it yourself

grammar

 atan( x )
parameter describe
x Required. A number.

illustrate

atan() function returns the arctangent value of x , in radians. atan() is the inverse function of tan() , which means that every value in the atan() range is a==tan(atan(a)) .

Similar Functions
  • Hyperbolic sine sinh

    sinh

    Hyperbolicsine
  • Convert decimal to octal decoct

    decoct

    Convertdecimaltoocta
  • Convert hexadecimal to decimal hexdec

    hexdec

    Converthexadecimalto
  • Find the minimum value min

    min

    Findtheminimumvalue
  • Generate better random numbers mt_rand

    mt_rand

    Generatebetterrandom
  • Convert binary to decimal bindec

    bindec

    Convertbinarytodecim
  • Generate a random integer rand

    rand

    Generatearandominteg
  • Hyperbolic tangent tanh

    tanh

    Hyperbolictangent
Popular Articles